package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.TravelConcern;
import cn.wolfcode.trip.base.query.TravelConcernQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;


public interface ITravelConcernService {
    void save(TravelConcern travelConcern);

    int getLikeNumsByTravelId(Long travelId);

    int getcollectorNumsByTravelId(Long travelId);

    void checkUserTravelConcerns(Long userId, Long travelId);

    void update(TravelConcern travelConcern);

    void checkUserConcernCollector(Long userId, Long travelId);

    void saveCollector(TravelConcern travelConcern);

    void updateCollector(TravelConcern travelConcern);

    int selectNotLike(Long userId);


    PageInfo<TravelConcern> query(TravelConcernQueryObject qo);

    void updateIsViewed(List<Long> userId);

}
